// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';

// 导入公共样式
import "./css/baseCss.css";

// 导入Element-ui相关的组件和样式
import {
  Button,
  Carousel,
  CarouselItem
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.component(Button.name, Button);
Vue.component(Carousel.name, Carousel);
Vue.component(CarouselItem.name, CarouselItem);

// 自定义组件
import TimerShaft from "./components/TimerShaft";
import LoveWall from "./components/LoveWall";

Vue.component(TimerShaft.name, TimerShaft);
Vue.component(LoveWall.name, LoveWall);

// 导入重置样式
import "./css/resetStyle.css";

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
